package org.employee.testing;

import static org.junit.Assert.*;

import org.junit.Test;

public class EmpBusinessLogicTest {

	EmployeeDetails details = new EmployeeDetails();
	EmpBusinessLogic empBL = new EmpBusinessLogic();

	@Test
	public void testCalculateYearlySalary() {

		details.setAge(25);
		details.setName("Nikhil");
		details.setSalary(8000.00);

		assertEquals(200.00, empBL.calcuateYearlyAppraisel(details), 0.0);

	}

	@Test
	public void testCalcuateYearlyAppraisel() {

		details.setAge(25);
		details.setName("Nikhil");
		details.setSalary(8000.00);

		assertEquals(96000.00, empBL.calculateYearlySalary(details), 0.0);

	}

}
